Skip to content

Remodel how analyzer dependencies are managed#1622

Merged
AArnott merged 2 commits into
mainfrom
dev/andarno/analyzer-dependencies
Jul 15, 2026
Merged

Remodel how analyzer dependencies are managed#1622
AArnott merged 2 commits into
mainfrom
dev/andarno/analyzer-dependencies

Conversation

@AArnott

@AArnott AArnott commented Jul 15, 2026

Copy link
Copy Markdown
Member

This updates some dependencies, but more importantly it adopts the pattern in the vs-mef repo for how analyzer dependencies are expressed so that they don't accidentally get updated with other dependencies.

This updates some dependencies, but more importantly it adopts the pattern in the vs-mef repo for how analyzer dependencies are expressed so that they don't accidentally get updated with other dependencies.
Copilot AI review requested due to automatic review settings July 15, 2026 16:15
@AArnott AArnott enabled auto-merge July 15, 2026 16:15
@AArnott AArnott disabled auto-merge July 15, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Roslyn/analyzer-related dependencies and restructures how analyzer projects pin VS-host-compatible package versions by moving analyzer-specific overrides into a dedicated Directory.Packages.Analyzers.props, similar to the pattern used in vs-mef. It also updates affected code-fix rename calls to match the newer Roslyn API surface.

Changes:

  • Bumped centrally-managed Microsoft.CodeAnalysis* versions (general) and adjusted the Microsoft.CodeAnalysis.ResxSourceGenerator global reference.
  • Added Directory.Packages.Analyzers.props and conditionally imported it for analyzer projects ($(IsAnalyzerProject)), plus updated Renovate config to avoid updating that file.
  • Updated Renamer.RenameSymbolAsync invocations to the newer overload shape.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Microsoft.VisualStudio.Threading.Analyzers.CodeFixes/VSTHRD200UseAsyncNamingConventionCodeFix.cs Adjusts Roslyn rename invocation to match updated Roslyn API usage.
src/Microsoft.VisualStudio.Threading.Analyzers.CodeFixes/FixUtils.cs Adjusts Roslyn rename invocation to match updated Roslyn API usage.
Directory.Packages.props Updates Roslyn package versioning and restructures analyzer-related pinning/refs.
Directory.Packages.Analyzers.props Introduces analyzer-project-specific package version overrides (VS-host compatibility).
Directory.Build.targets Imports analyzer-specific package overrides when IsAnalyzerProject is set.
.github/renovate.json Disables Renovate updates for Directory.Packages.Analyzers.props.

Copilot AI review requested due to automatic review settings July 15, 2026 16:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread Directory.Packages.Analyzers.props Outdated
Comment thread Directory.Packages.Analyzers.props Outdated
Copilot AI review requested due to automatic review settings July 15, 2026 16:55
@AArnott AArnott force-pushed the dev/andarno/analyzer-dependencies branch from bbd6cae to ad30222 Compare July 15, 2026 16:55
@AArnott AArnott force-pushed the dev/andarno/analyzer-dependencies branch from ad30222 to f86289b Compare July 15, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread Directory.Packages.Analyzers.props Outdated
Comment thread Directory.Packages.Analyzers.props Outdated
Copilot AI review requested due to automatic review settings July 15, 2026 17:01
@AArnott AArnott force-pushed the dev/andarno/analyzer-dependencies branch from f86289b to a71fbbb Compare July 15, 2026 17:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Copilot AI review requested due to automatic review settings July 15, 2026 17:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.

@AArnott AArnott enabled auto-merge July 15, 2026 17:28
@AArnott AArnott merged commit 52f67a4 into main Jul 15, 2026
10 checks passed
@AArnott AArnott deleted the dev/andarno/analyzer-dependencies branch July 15, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants